const fs = require("fs");

fs.readFile('./1.txt', (err, data) => {
  if (err) throw err;
  console.log(data.toString());
  
  fs.writeFile('./1copy.txt',data, (err, data) => {
    if (err) throw err;
    console.log('文件已保存！');
  });
});
